home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v9n03.arc
/
DSPLOG.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-01-12
|
2KB
|
45 lines
ECHO OFF
: This displays the contents of a ))A.LOG type compressed report file created
: by CFcompC or if that fails, the file will be displayed as is.
IF "%1"=="" goto help
IF %1==? goto help
IF NOT EXIST %1 GOTO MissingF
GOTO Start
:Help
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ Syntax: DSPLOG filename (filename is the report file to display) ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ D S P l o g - will display the content of a compressed report file such ║
ECHO ║ as the ))A.LOG files created by CHKfileC in batch files: ║
ECHO ║ SCANmax, SCANsys and INITsys. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ If the file is not a compressed report file, DSPlog will assume its ║
ECHO ║ a display formatted CHKfile report file, and will simply display the ║
ECHO ║ file. ║
ECHO ╟─────────────────────────────────────────────────────────────────────────╢
ECHO ║ PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co. ║
ECHO ║ PC Magazine ■ Wolfgang Stiller ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
GOTO END
:Start
CFCOMPC ))@@NUL.$$$ %1/P
: If this file is an invalid type, display it as ascii chkfile report
IF ERRORLEVEL 16 GOTO Try2
GOTO END
:MissingF
ECHO Sorry, file %1 can't be found in this directory.
GOTO End
:Try2
ECHO ╔═════════════════════════════════════════════════════════════════════════╗
ECHO ║ DSPlog could not process file as a CHKfileC compressed report file. ║
ECHO ║ The file will now be displayed as normal ASCII report file. ║
ECHO ║ Hit CNTL/BREAK to abort this, otherwise hit any other key. ║
ECHO ╚═════════════════════════════════════════════════════════════════════════╝
PAUSE
MORE < %1
:End
ECHO ╔═════════════════════════════════════╗
ECHO ║ *** E N D O F D I S P L A Y *** ║
ECHO ╚═════════════════════════════════════╝